'''
Created on Apr 11, 2012

@author: lavang
'''

# Link of New Course
def xpathNewCourse():
    return "//a[contains(@href, '/administrator.php?ctg=courses&add_course=1')]"

# Course Name
def xpathCourseName():
    return "//input[@name='name']"

# Category
def xpathCategory():
    return "//select[@name='directions_ID']"

# Language
def xpathLanguage():
    return "//select[@name='languages_NAME']"

# Active
def xpathActive():
    return "//form[@id='add_courses_form']/table/tbody/tr[4]/td[2]/input[2]"

# Show course
def xpathShowCourse():
    return "//form[@id='add_courses_form']/table/tbody/tr[5]/td[2]/input[2]"

# Price of course
def xpathPrice():
    return "//input[@name='price']"

# Submit button
def xpathSubmit():
    return "//input[@name='submit_course']"

# Delete button
def xpathDeleteCourse(courseName):
    return "//a[contains(text(),'"+courseName+"')]/../../td/img[@title='Delete']"

# Link Course, submit page
def xpathCourse():
    return "//a[contains(text(),'Courses')]"

# Search box
def xpathSearchBox():
    return "//input[@value='Filter...']"